package com.ikun.admin.common.constant;

/**
 * 常量
 */
public interface CommonConstant {
    Integer SQL_ERROR = 0; // SQL异常

    Integer BUSINESS_ERROR = 1; // 业务异常

    Integer SYS_ERROR = 2;  // 系统异常

    // 监控 操作类型
    Integer OPERATION_TYPE_ADD = 0;
    Integer OPERATION_TYPE_DELETE = 1;
    Integer OPERATION_TYPE_UPDATE = 2;
    Integer OPERATION_TYPE_IMPORT = 3;
    Integer OPERATION_TYPE_EXPORT = 4;

    // aop 执行状态
    Integer ASPECT_STATUS_SUCCESS = 0;

    Integer ASPECT_STATUS_FAIL = 1;

    //用户状态
    Integer USER_STATUS_NORMAL = 0;

    Integer USER_STATUS_FREEZE = 1;

    //在线用户集合前缀
    String REDIS_LOGIN_USER = "LOGIN_USER:";
}
